<include file="Public:header"/>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
    <include file="Public:nav"/>
    <div class="h_a">搜索</div>
    <form method="post" action="{:U('Teach/topiclist')}">
        <input type="hidden" value="1" name="search">
        <div class="search_type cc mb10">
            <div class="mb10">
        <span class="mr20">时间：
        <input type="text" name="start_time" class="input length_2 J_date" value="{$Think.get.start_time}" style="width:80px;">-<input type="text" class="input length_2 J_date" name="end_time" value="{$Think.get.end_time}" style="width:80px;">
        <select class="select_2" name="iflight">
            <option value="">全部</option>
            <option value="1" <eq name="iflight" value="1">selected</eq>>加精</option>
            <option value="2" <eq name="iflight" value="2">selected</eq>>不加精</option>
        </select>
        <select class="select_2" name="type">
            <option value="">全部</option>
            <option value="1" <eq name="type" value="1">selected</eq>>导师文章</option>
            <option value="2" <eq name="type" value="2">selected</eq>>普通文章</option>
        </select>
        关键字：
        <input type="text" class="input length_2" name="keyword" style="width:200px;" value="{$_GET.keyword}" placeholder="请输入关键字...">
        <button class="btn">搜索</button>
        </span>
            </div>
        </div>
    </form>
    <form name="myform" action="" method="post" class="J_ajaxForm">
    <div class="table_list">
        <table width="100%">
            <thead>
            <tr>
                <td width="4%"><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></td>
                <td width="5%">加精</td>
                <td width="10%">作者名</td>
                <td width="20%">标题</td>
                <td width="10%">时间</td>
                <td width="15%">管理操作</td>
            </tr>
            </thead>
            <foreach name="list" item="vo">
                <tr>
                    <td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="ids[]" value="{$vo.teachid}"></td>
                    <td><if condition="$vo.iflight eq 1"><span style="color: red;">是</span><else/>否</if></td>
                    <td>{$vo.userid|getNickName}</td>
                    <td><a href="{:U('/teach/'.$vo['teachid'])}" target="_blank">{$vo.title}</a><if condition="$vo.type eq 1"><font color="red">作品</font> </if></td>
                    <td>{$vo.create_time|date="Y-m-d H:i:s", ###}</td>
                    <td><a class="J_ajax_del" data-msg="确定删除该信息吗?" href="{:U('Teach/del_list',array('teachid'=>$vo['teachid']))}">删除</a></td>
                </tr>
            </foreach>
        </table>
        <div class="p10"><div class="pages"> {$Page} </div> </div>
        <div class="btn_wrap">
            <div class="btn_wrap_pd">
                <label class="mr20 sel-all"><input type="checkbox" class="J_check_all" data-direction="y" data-checklist="J_check_y">全选</label>
                <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Teach/setlight',array('do'=>'checklight'))}">加精</button>
                <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Teach/setlight',array('do'=>'cancellight'))}">取消加精</button>
                <button class="btn J_ajax_submit_btn" type="submit" data-msg="确认删除这些信息?" data-subcheck="true" data-action="{:U('Teach/deleteAll_list')}">删除</button>
            </div>
        </div>
    </div>
</div>
</form>
</div>
<script src="__JS__/common.js"></script>
</body>
</html>